home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / wfs203.zip / WFSUDATE.C < prev    next >
C/C++ Source or Header  |  1992-11-11  |  452b  |  23 lines

  1. /* ---------------------------------------------------------------------
  2.    wfsudate.c -- Display the date to stdout
  3.  
  4.    Display the date to stdout using standard library functions.
  5.  
  6. ----------- */
  7. #include <stdio.h>
  8. #include <string.h>
  9. #include <time.h>
  10.  
  11. int main() {
  12.    time_t   tod;
  13.    char  mbuf[128] = "Executed: ";
  14.  
  15.    time( &tod );
  16.    strcat( mbuf, ctime( &tod ) );
  17.    puts( mbuf );
  18.  
  19.  
  20.    return 0;
  21. } // --- end main() ---
  22.  
  23.